﻿using NPOI.XWPF.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MDT.LifeSewagePlatform.Conmmon
{
    public interface IManagerWord
    {
        public  Task CreateDocAsync();

        /// <summary>
        /// 针对一行文字
        /// </summary>
        /// <param name="str"></param>
        public Task CreatePAsync(string str);
        public Task CreatePAsync(string str, Action<XWPFParagraph, XWPFRun> act = null);



        public Task CreatePAsync(Action<XWPFParagraph, XWPFRun> act = null);


        public Task CreatePAsync(string[] str, Action<string[], XWPFParagraph, XWPFRun> act = null);
       
        public void BuliderWorldAsync(string docPath, string Name);



        public Task SetStylesDoc();
       
        public void CreateTable();

        public  void CreateTable(int row = 4, int col = 2, Action<XWPFTable, XWPFDocument> action = null);
        public XWPFParagraph SetCellText(XWPFDocument doc, XWPFTable table, string setText,int size=12);


        public XWPFParagraph SetCellText(XWPFDocument doc, XWPFTable table, string setText,
            ParagraphAlignment align, int textPos,int size=12);
        

        public void AddPic(string path, int width, int height);

        public void OneTitle(XWPFParagraph p, XWPFRun run);

        public void TwoTitle(XWPFParagraph p, XWPFRun run);


        public void Content(XWPFParagraph p, XWPFRun run);
        public int GetPicIndex();
    }
}
